<!doctype html>
<html lang="zh-CN">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>hugo添加Valine评论系统 | BlackRun的博客</title>
    <meta property="og:title" content="hugo添加Valine评论系统 - BlackRun的博客">
    <meta property="og:type" content="article">
        
    <meta property="article:published_time" content='2020-03-03T04:40:44&#43;08:00'>
        
        
    <meta property="article:modified_time" content='2020-03-03T04:40:44&#43;08:00'>
        
    <meta name="Keywords" content="android,博客,项目管理,python,软件架构,公众号,小程序,JavaScript">
    <meta name="description" content="hugo添加Valine评论系统">
        
    <meta name="author" content="BlackRun">
    <meta property="og:url" content="https://lovehxy.com/blog/post/hugo%E6%B7%BB%E5%8A%A0Valine%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F/">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

    <link rel="stylesheet" href='/blog/css/normalize.css'>
    <link rel="stylesheet" href='/blog/css/style.css'>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

    


    
    
        <link rel="stylesheet" href='/blog/css/douban.css'>
    
        <link rel="stylesheet" href='/blog/css/other.css'>
    
</head>


<body>
    <header id="header" class="clearfix">
    <div class="container">
        <div class="col-group">
            <div class="site-name ">
                
                    <a id="logo" href="https://lovehxy.com/blog">
                        BlackRun的博客
                    </a>
                
                <p class="description">不积跬步，无以至千里；不积小流，无以成江海。骐骥一跃，不能十步；驽马十驾，功在不舍。锲而舍之，朽木不折；锲而不舍，金石可镂。</p>
            </div>
            <div>
                <nav id="nav-menu" class="clearfix">
                    <a class="current" href="https://lovehxy.com/blog">首页</a>
                    
                    <a  href="https://lovehxy.com/blog/archives/" title="归档">归档</a>
                    
                    <a  href="https://lovehxy.com/blog/about/" title="关于">关于</a>
                    
                </nav>
            </div>
        </div>
    </div>
</header>

    <div id="body">
        <div class="container">
            <div class="col-group">

                <div class="col-8" id="main">
                    
<div class="res-cons">
    <style type="text/css">
    .post-toc {
        position: fixed;
        width: 200px;
        margin-left: -210px;
        padding: 5px 10px;
        font-family: Athelas, STHeiti, Microsoft Yahei, serif;
        font-size: 12px;
        border: 1px solid rgba(0, 0, 0, .07);
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.98);
        background-clip: padding-box;
        -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        word-wrap: break-word;
        white-space: nowrap;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        z-index: 999;
        cursor: pointer;
        max-height: 70%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .post-toc .post-toc-title {
        width: 100%;
        margin: 0 auto;
        font-size: 20px;
        font-weight: 400;
        text-transform: uppercase;
        text-align: center;
    }

    .post-toc .post-toc-content {
        font-size: 15px;
    }

    .post-toc .post-toc-content>nav>ul {
        margin: 10px 0;
    }

    .post-toc .post-toc-content ul {
        padding-left: 20px;
        list-style: square;
        margin: 0.5em;
        line-height: 1.8em;
    }

    .post-toc .post-toc-content ul ul {
        padding-left: 15px;
        display: none;
    }

    @media print,
    screen and (max-width:1057px) {
        .post-toc {
            display: none;
        }
    }
</style>
<div class="post-toc" style="position: absolute; top: 188px;">
    <h2 class="post-toc-title">文章目录</h2>
    <div class="post-toc-content">
        <nav id="TableOfContents">
  <ul>
    <li><a href="#leancloud">LEANCloud配置</a></li>
    <li><a href="#heading-1">修改主题文件</a></li>
    <li><a href="#heading-2">添加评论代码和文章阅读量统计</a></li>
  </ul>
</nav>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        var postToc = $(".post-toc");
        if (postToc.length) {
            var leftPos = $("#main").offset().left;
            if(leftPos<220){
                postToc.css({"width":leftPos-10,"margin-left":(0-leftPos)})
            }

            var t = postToc.offset().top - 20,
                a = {
                    start: {
                        position: "absolute",
                        top: t
                    },
                    process: {
                        position: "fixed",
                        top: 20
                    },
                };
            $(window).scroll(function () {
                var e = $(window).scrollTop();
                e < t ? postToc.css(a.start) : postToc.css(a.process)
            })
        }
    })
</script>
    <article class="post">
        <header>
            <h1 class="post-title">hugo添加Valine评论系统</h1>
        </header>
        <date class="post-meta meta-date">
            2020年3月3日
        </date>
        
        <div class="post-meta">
            <span>|</span>
            
            <span class="meta-category"><a href='https://lovehxy.com/categories/blog'>blog</a></span>
            
            <span class="meta-category"><a href='https://lovehxy.com/categories/%E6%9D%82%E4%B8%83%E6%9D%82%E5%85%AB'>杂七杂八</a></span>
            
        </div>
        
        
        <div class="post-meta">
            <span id="busuanzi_container_page_pv">|<span id="busuanzi_value_page_pv"></span><span>
                    阅读</span></span>
        </div>
        
        
        <div class="clear" style="display: none">
            <div class="toc-article">
                <div class="toc-title">文章目录</div>
            </div>
        </div>
        
        <div class="post-content">
            <h1 id="heading">背景</h1>
<p>我目前的博客主题是<a href="https://github.com/flysnow-org/maupassant-hugo">https://github.com/flysnow-org/maupassant-hugo</a></p>
<p>里面集成了utteranc和disqus两个评论系统，两个在国内都不太好用，于是搜索到了一个国人开发的评论系统&mdash;<a href="https://valine.js.org/quickstart.html">Valine</a>，测试了一下，确实好用，第一时间给博客加上去了，特记录如下。</p>
<h1 id="valine">Valine设置</h1>
<h2 id="leancloud">LEANCloud配置</h2>
<p>由于这个评论系统是无后端的，所以必须借助<a href="https://leancloud.cn/">LEANCloud</a>这个服务商，当然都是免费的。去注册账号，然后根据Valine官网提供的图片拿到APP ID 和 APP Key。<br>
然后需要在上面建立两个class，分别用来存储评论和阅读次数，具体过程参考<a href="https://www.smslit.top/2018/07/08/hugo-valine/">https://www.smslit.top/2018/07/08/hugo-valine/</a></p>
<h2 id="heading-1">修改主题文件</h2>
<p>编辑hugo根目录下的<code>config.toml</code>文件，添加下面信息:</p>
<pre><code class="language-conf" data-lang="conf">## 配置valine评论
[params.valine]
    enable = true
    appId = 'your appId'
    appKey = 'your appKey'
    notify = false  
    verify = true
    avatar = 'mm' 
    placeholder = '说点什么吧...'
    visitor = true
</code></pre><p>具体配置说明可以查看官网，已经很清楚了。</p>
<h2 id="heading-2">添加评论代码和文章阅读量统计</h2>
<p>然后找到该主题目录下<code>layouts/partials/comment.html</code>文件，加入下面代码:</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">21
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">22
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">23
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">24
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">25
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-html" data-lang="html">
<span style="color:#998;font-style:italic">&lt;!--</span><span style="color:#998;font-style:italic"> valine </span><span style="color:#998;font-style:italic">--&gt;</span>
{{- if .Site.Params.valine.enable -}}
<span style="color:#998;font-style:italic">&lt;!--</span><span style="color:#998;font-style:italic"> id 将作为查询条件 </span><span style="color:#998;font-style:italic">--&gt;</span>
&lt;<span style="color:#000080">span</span> <span style="color:#008080">id</span><span style="color:#000;font-weight:bold">=</span><span style="color:#d14">&#34;{{ .RelPermalink }}&#34;</span> <span style="color:#008080">class</span><span style="color:#000;font-weight:bold">=</span><span style="color:#d14">&#34;leancloud_visitors&#34;</span> <span style="color:#008080">data-flag-title</span><span style="color:#000;font-weight:bold">=</span><span style="color:#d14">&#34;{{ .Title }}&#34;</span>&gt;
  &lt;<span style="color:#000080">span</span> <span style="color:#008080">class</span><span style="color:#000;font-weight:bold">=</span><span style="color:#d14">&#34;post-meta-item-text&#34;</span>&gt;文章阅读量 &lt;/<span style="color:#000080">span</span>&gt;
  &lt;<span style="color:#000080">span</span> <span style="color:#008080">class</span><span style="color:#000;font-weight:bold">=</span><span style="color:#d14">&#34;leancloud-visitors-count&#34;</span>&gt;&lt;<span style="color:#000080">i</span> <span style="color:#008080">class</span><span style="color:#000;font-weight:bold">=</span><span style="color:#d14">&#34;leancloud-visitors-count&#34;</span>&gt;&lt;/<span style="color:#000080">i</span>&gt;&lt;/<span style="color:#000080">span</span>&gt;次
  &lt;<span style="color:#000080">p</span>&gt;&lt;/<span style="color:#000080">p</span>&gt;
&lt;/<span style="color:#000080">span</span>&gt;
&lt;<span style="color:#000080">div</span> <span style="color:#008080">id</span><span style="color:#000;font-weight:bold">=</span><span style="color:#d14">&#34;vcomments&#34;</span>&gt;&lt;/<span style="color:#000080">div</span>&gt;
&lt;<span style="color:#000080">script</span> <span style="color:#008080">src</span><span style="color:#000;font-weight:bold">=</span><span style="color:#d14">&#39;//unpkg.com/valine/dist/Valine.min.js&#39;</span>&gt;&lt;/<span style="color:#000080">script</span>&gt;
&lt;<span style="color:#000080">script</span>&gt;
  <span style="color:#000;font-weight:bold">new</span> Valine({
    el<span style="color:#000;font-weight:bold">:</span> <span style="color:#d14">&#39;#vcomments&#39;</span>,
    appId<span style="color:#000;font-weight:bold">:</span> <span style="color:#d14">&#39;{{ .Site.Params.valine.appId }}&#39;</span>,
    appKey<span style="color:#000;font-weight:bold">:</span> <span style="color:#d14">&#39;{{ .Site.Params.valine.appKey }}&#39;</span>,
    notify<span style="color:#000;font-weight:bold">:</span> {{ .Site.Params.valine.notify }},
    verify<span style="color:#000;font-weight:bold">:</span> {{ .Site.Params.valine.verify }},
    avatar<span style="color:#000;font-weight:bold">:</span> <span style="color:#d14">&#39;{{ .Site.Params.valine.avatar }}&#39;</span>,
    placeholder<span style="color:#000;font-weight:bold">:</span> <span style="color:#d14">&#39;{{ .Site.Params.valine.placeholder }}&#39;</span>,
    visitor<span style="color:#000;font-weight:bold">:</span> {{ .Site.Params.valine.visitor }}

        })
&lt;/<span style="color:#000080">script</span>&gt;
{{- end }}
</code></pre></td></tr></table>
</div>
</div><p>然后<code>hugo server</code>应该就可以看到效果了</p>
<h1 id="heading-3">完善评论通知</h1>
<p>Valine本身的评论提醒功能不太好，于是又有人开发了<a href="https://github.com/DesertsP/Valine-Admin">Valine-Admin</a>来完善这个系统（简直不要太强大）简而言之，此系统给你提供了个网站后台可以让你管理评论，同时可以再有新评论的时候给你发邮件通知你。</p>
<h1 id="heading-4">其他</h1>
<p>整个过程中没有坑的地方，直接看我发的原地址就行，有坑的地方我都自己说明了，例如上面修改代码部分。第一次配置可能有点麻烦，不要急。慢慢来，都会好的。</p>
<h1 id="heading-5">参考</h1>
<ul>
<li><a href="https://valine.js.org/visitor.html">https://valine.js.org/visitor.html</a></li>
<li><a href="https://github.com/DesertsP/Valine-Admin">https://github.com/DesertsP/Valine-Admin</a></li>
<li><a href="https://www.smslit.top/2018/07/08/hugo-valine/">https://www.smslit.top/2018/07/08/hugo-valine/</a></li>
</ul>

        </div>

        
<div class="post-archive">
    <ul class="post-copyright">
        <li><strong>原文作者：</strong><a rel="author" href="https://lovehxy.com/blog">BlackRun</a></li>
        <li style="word-break:break-all"><strong>原文链接：</strong><a href="https://lovehxy.com/blog/post/hugo%E6%B7%BB%E5%8A%A0Valine%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F/">https://lovehxy.com/blog/post/hugo%E6%B7%BB%E5%8A%A0Valine%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F/</a></li>
        <li><strong>版权声明：</strong>本作品采用<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议</a>进行许可，非商业转载请注明出处（作者，原文链接），商业转载请联系作者获得授权。</li>
    </ul>
</div>
<br/>



        

<div class="post-archive">
    <h2>See Also</h2>
    <ul class="listing">
        
        <li><a href="/blog/post/%E5%B0%86%E5%8D%9A%E5%AE%A2%E8%BF%81%E7%A7%BB%E8%87%B3gitee/">将博客从github迁移至gitee</a></li>
        
        <li><a href="/blog/post/%E5%9C%A8%E9%98%BF%E9%87%8C%E4%BA%91%E4%BD%BF%E7%94%A8docker%E9%83%A8%E7%BD%B2flasknginx-gunicory/">在阿里云使用docker部署flask（nginx&#43;gunicory）</a></li>
        
        <li><a href="/blog/post/%E5%9C%A8Ubuntu%E4%B8%8A%E4%BD%BF%E7%94%A8Nginx-uWSGI%E9%83%A8%E7%BD%B2Flask%E5%BA%94%E7%94%A8/">在Ubuntu上使用Nginx&#43;uWSGI部署Flask应用</a></li>
        
        <li><a href="/blog/post/%E7%94%9F%E6%B4%BB%E4%B8%AD%E7%9A%84python-%E5%AE%9E%E7%8E%B0%E8%87%AA%E5%8A%A8%E6%9B%B4%E6%8D%A2ip/">生活中的python-实现自动更换ip</a></li>
        
        <li><a href="/blog/post/mac%E4%B8%8A%E5%AE%89%E8%A3%85virtualenvwrapper%E7%9A%84%E6%AD%A3%E7%A1%AE%E5%A7%BF%E5%8A%BF/">mac上安装virtualenvwrapper的正确姿势</a></li>
        
    </ul>
</div>


        <div class="post-meta meta-tags">
            
            <ul class="clearfix">
                
                <li><a href='https://lovehxy.com/tags/blog'>blog</a></li>
                
                <li><a href='https://lovehxy.com/tags/%E6%9D%82%E4%B8%83%E6%9D%82%E5%85%AB'>杂七杂八</a></li>
                
            </ul>
            
        </div>
    </article>
    






<span id="/blog/post/hugo%E6%B7%BB%E5%8A%A0Valine%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F/" class="leancloud_visitors" data-flag-title="hugo添加Valine评论系统">
  <span class="post-meta-item-text">文章阅读量 </span>
  <span class="leancloud-visitors-count"><i class="leancloud-visitors-count"></i></span>次
  <p></p>
</span>
<div id="vcomments"></div>
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
<script>
  new Valine({
    el: '#vcomments',
    appId: 's5KqGUHDgf0xOS97wGkMyYYY-gzGzoHsz',
    appKey: '1k20SrfS3QzNwqGaVaDiohy3',
    notify:  false ,
    verify:  true ,
    avatar: 'monsterid',
    placeholder: '说点什么吧...',
    visitor:  true 

        })
</script>
</div>

                </div>

                <div id="secondary">
    <section class="widget">
        <form id="search" action='https://lovehxy.com/blog/search/' method="get" accept-charset="utf-8" target="_blank" _lpchecked="1">
      
      <input type="text" name="q" maxlength="20" placeholder="Search">
      <input type="hidden" name="sitesearch" value="https://lovehxy.com/blog">
      <button type="submit" class="submit icon-search"></button>
</form>
    </section>
    
    <section class="widget">
        <h3 class="widget-title">最近文章</h3>
<ul class="widget-list">
    
    <li>
        <a href="https://lovehxy.com/blog/post/hugo%E6%B7%BB%E5%8A%A0Valine%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F/" title="hugo添加Valine评论系统">hugo添加Valine评论系统</a>
    </li>
    
    <li>
        <a href="https://lovehxy.com/blog/post/%E5%B0%86%E5%8D%9A%E5%AE%A2%E8%BF%81%E7%A7%BB%E8%87%B3gitee/" title="将博客从github迁移至gitee">将博客从github迁移至gitee</a>
    </li>
    
    <li>
        <a href="https://lovehxy.com/blog/post/%E5%9C%A8%E9%98%BF%E9%87%8C%E4%BA%91%E4%BD%BF%E7%94%A8docker%E9%83%A8%E7%BD%B2flasknginx-gunicory/" title="在阿里云使用docker部署flask（nginx&#43;gunicory）">在阿里云使用docker部署flask（nginx&#43;gunicory）</a>
    </li>
    
    <li>
        <a href="https://lovehxy.com/blog/post/%E5%9C%A8Ubuntu%E4%B8%8A%E4%BD%BF%E7%94%A8Nginx-uWSGI%E9%83%A8%E7%BD%B2Flask%E5%BA%94%E7%94%A8/" title="在Ubuntu上使用Nginx&#43;uWSGI部署Flask应用">在Ubuntu上使用Nginx&#43;uWSGI部署Flask应用</a>
    </li>
    
    <li>
        <a href="https://lovehxy.com/blog/post/%E7%94%9F%E6%B4%BB%E4%B8%AD%E7%9A%84python-%E5%AE%9E%E7%8E%B0%E8%87%AA%E5%8A%A8%E6%9B%B4%E6%8D%A2ip/" title="生活中的python-实现自动更换ip">生活中的python-实现自动更换ip</a>
    </li>
    
    <li>
        <a href="https://lovehxy.com/blog/post/mac%E4%B8%8A%E5%AE%89%E8%A3%85virtualenvwrapper%E7%9A%84%E6%AD%A3%E7%A1%AE%E5%A7%BF%E5%8A%BF/" title="mac上安装virtualenvwrapper的正确姿势">mac上安装virtualenvwrapper的正确姿势</a>
    </li>
    
    <li>
        <a href="https://lovehxy.com/blog/post/ubuntu%E6%9B%B4%E6%94%B9%E6%BA%90%E7%9A%84%E9%97%AE%E9%A2%98/" title="ubuntu更改源的问题">ubuntu更改源的问题</a>
    </li>
    
    <li>
        <a href="https://lovehxy.com/blog/post/win7%E4%B8%8B%E5%BF%AB%E9%80%9F%E5%88%87%E6%8D%A2python2%E5%92%8Cpython3/" title="win7下快速切换python2和python3">win7下快速切换python2和python3</a>
    </li>
    
</ul>
    </section>

    
<section class="widget">
    <h3 class="widget-title" style="color:red">福利派送</h3>
    <ul class="widget-list">
        
        <li>
            <a href="https://s.click.taobao.com/t?e=m%3D2%26s%3D90MfnkAnrlgcQipKwQzePCperVdZeJviEViQ0P1Vf2kguMN8XjClArG%2FzGTCtWD64DyKJclz0QrYfIY6hqvfbeTA3EelB8UPrjX9XZG%2Fs%2FGPv9RvvMCUVjDVuRn8ddiDsEVVC24eqozO54LQ%2FVw1L9X5LHh3Z8M%2BWS6ALZVeqlk9XUfbPSJC%2F06deTzTIbffYpyF7ku%2BxKgGargQjSAC4C6cUF%2FXAmem" title="阿里云高性能服务器" target="_blank" style="color:red">
                
                    <img src="http://pic.lovehxy.com/aliyun.jpg">
                
            </a>
        </li>
        
        <li>
            <a href="https://cloud.tencent.com/act/cps/redirect?redirect=1052&amp;cps_key=fc059b763bff7316ab189c1fda5ac18b&amp;from=console" title="【腾讯云】12.12云产品限时秒杀，爆款1核2G云服务器，99元/1年" target="_blank" style="color:red">
                
                    <img src="http://pic.lovehxy.com/%E8%85%BE%E8%AE%AF%E4%BA%91%E5%B9%BF%E5%91%8A.jpg">
                
            </a>
        </li>
        
    </ul>
</section>


    <section class="widget">
        <h3 class="widget-title">分类</h3>
<ul class="widget-list">
    
    <li><a href="https://lovehxy.com/blog/categories/blog/">blog (2)</a></li>
    
    <li><a href="https://lovehxy.com/blog/categories/linux/">linux (1)</a></li>
    
    <li><a href="https://lovehxy.com/blog/categories/python/">python (5)</a></li>
    
    <li><a href="https://lovehxy.com/blog/categories/%E6%9D%82%E4%B8%83%E6%9D%82%E5%85%AB/">杂七杂八 (2)</a></li>
    
</ul>
    </section>

    <section class="widget">
        <h3 class="widget-title">标签</h3>
<div class="tagcloud">
    
    <a href="https://lovehxy.com/blog/tags/blog/">blog</a>
    
    <a href="https://lovehxy.com/blog/tags/linux/">linux</a>
    
    <a href="https://lovehxy.com/blog/tags/python/">python</a>
    
    <a href="https://lovehxy.com/blog/tags/%E6%9D%82%E4%B8%83%E6%9D%82%E5%85%AB/">杂七杂八</a>
    
</div>
    </section>

    
<section class="widget">
    <h3 class="widget-title">友情链接</h3>
    <ul class="widget-list">
        
        <li>
            <a target="_blank" href="https://www.python.org/" title="人生苦短，我用Python">人生苦短，我用Python</a>
        </li>
        
    </ul>
</section>


    <section class="widget">
        <h3 class="widget-title">其它</h3>
        <ul class="widget-list">
            <li><a href="https://lovehxy.com/blog/index.xml">文章 RSS</a></li>
        </ul>
    </section>
</div>
            </div>
        </div>
    </div>
    <footer id="footer">
    <div class="container">
        &copy; 2020 <a href="https://lovehxy.com/blog">BlackRun的博客 By BlackRun</a>.
        Powered by <a rel="nofollow noreferer noopener" href="https://gohugo.io" target="_blank">Hugo</a>.
        <a href="https://www.flysnow.org/" target="_blank">Theme</a> based on <a href="https://github.com/flysnow-org/maupassant-hugo" target="_blank">maupassant</a>.
        
    </div>
</footer>


    
    <script type="text/javascript">
        window.MathJax = {
            tex2jax: {
                inlineMath: [['$', '$']],
                processEscapes: true
                }
            };
    </script>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>


<a id="rocket" href="#top"></a>
<script type="text/javascript" src='/blog/js/totop.js?v=0.0.0' async=""></script>

<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
	window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
	ga('create', 'UA-155010305-1', 'auto');
	
	ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>



    <script type="text/javascript" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async></script>




    <script src='/blog/js/douban.js'></script>

</body>

</html>